//
//  MySignUpCell.m
//  didacar
//
//  Created by Yang Yuexia on 15/12/10.
//  Copyright © 2015年 dzmmac. All rights reserved.
//

#import "MySignUpCell.h"
#import "UILabel+Yyx.h"
#import "RegularBusLineModel.h"
@implementation MySignUpCell

- (void)awakeFromNib {
    self.status.layer.cornerRadius = 2;
    self.status.layer.masksToBounds=YES;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

-(void)showModel:(RegularBusLineModel *)regularBusLinewModel
{
    
    self.price.attributedText = [self getPrice:@"30" leftText:@"约 " leftSymbol:@"¥"];
    
    if (regularBusLinewModel == nil) {
        return;
    }
    self.startTime.text = regularBusLinewModel.SendTime;
    self.startLocation.text = regularBusLinewModel.StartStation;
    self.endLocation.text = regularBusLinewModel.EndStation;
    
    self.price.attributedText = [self getPrice:regularBusLinewModel.TicketPrice.stringValue leftText:@"约" leftSymbol:@"¥"];
    
    // 报名样式
    if (regularBusLinewModel.isSignU == 0) {
        [self.status statusWaitRegistration];
    }else{
        [self.status statusRegistration];
    }
    
}

@end
